package com.gzedu.module.faced.role.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gzedu.module.faced.role.RolePermissionFacade;
import com.gzedu.module.modle.role.RolePermission;
import com.gzedu.module.service.role.impl.RolePermissionService;

@Service
public class RolePermissionFacadeImpl implements RolePermissionFacade{
	@Autowired
	private RolePermissionService rolePermissionService;

	public boolean insert(RolePermission rolePermission) {
		// TODO Auto-generated method stub
		return rolePermissionService.insert(rolePermission) > 0;
	}

	public List<RolePermission> findListByRoleCode(RolePermission rolePermission) {
		// TODO Auto-generated method stub
		return rolePermissionService.findListByRoleCode(rolePermission);
	}

	public int deleteByRoleCode(RolePermission rolePermission) {
		// TODO Auto-generated method stub
		return rolePermissionService.deleteByRoleCode(rolePermission);
	}

}
